Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify observer_set to only accept and pass const ref arguments #4768

Merged
merged 2 commits into from
Oct 27, 2024

Conversation

pwojcikdev
Copy link
Contributor

This avoids copying parameters when notifying observers.
It's the first part of the refactoring, the second will be dropping redundant const & qualifications from observer set events, eg: nano::observer_set<processed_batch_t const &> batch_processed; to just nano::observer_set<processed_batch_t> batch_processed; should be fine now, the batch will be passed by reference by default. I'll do this refactoring after bounded backlog changes as it will mess a lot of existing commits.

@gr0vity-dev-bot
Copy link

gr0vity-dev-bot commented Oct 27, 2024

Test Results for Commit dd668ad

Pull Request 4768: Results
Overall Status:

Test Case Results

  • 5n4pr_conf_10k_bintree: PASS (Duration: 113s)
  • 5n4pr_conf_10k_change: PASS (Duration: 187s)
  • 5n4pr_conf_change_dependant: PASS (Duration: 159s)
  • 5n4pr_conf_change_independant: PASS (Duration: 145s)
  • 5n4pr_conf_send_dependant: PASS (Duration: 148s)
  • 5n4pr_conf_send_independant: PASS (Duration: 130s)
  • 5n4pr_rocks_10k_bintree: PASS (Duration: 115s)
  • 5n4pr_rocks_10k_change: PASS (Duration: 230s)

Last updated: 2024-10-27 11:36:58 UTC

@pwojcikdev pwojcikdev merged commit 074519d into nanocurrency:develop Oct 27, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants